// 引入的不再是Vue构造函数了，引入的是一个名为createApp的工厂函数
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import _ from 'lodash'
import axiosInstance from '@/axios'
import VueCookies from 'vue-cookies'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
// 创建应用实例对象--app(类似于之前Vue2中的vm，但app比vm更轻量)
const app = createApp(App)
app.config.globalProperties.$cookies = VueCookies;
app.config.globalProperties.$axios = axiosInstance;
app.config.globalProperties.$_ = _;
app.use(store).use(router).use(Antd).mount('#app')
console.log(app);